#include <vector>
#include <atomic>
#include <cstdint>
#include "log/log.h"

extern "C" {
    #include "rk_pcie_ep/rk_pcie_ep.h"
}


class SmartPcieEp {
public:
    SmartPcieEp() {}
    ~SmartPcieEp() {}

    int init();
    int deinit();
    int stop();

    int send(std::vector<uint8_t> data);
    int recv(std::vector<uint8_t> data);

private:
    std::atomic_bool m_loop_run;
};